﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;
using RealtyManagementSystem.DAL;

namespace RealtyManagementSystem.BLL
{
    public class Role
    {

        public Role()
        {
        }

        public List<aspnet_Roles> GetAllRoles ()
        {
            using (var dataContext = new realtydbEntities())
            {
                var rolesQuery =
                         from rol
                             in
                             dataContext.aspnet_Roles
                         orderby rol.RoleName
                         select rol;

                return rolesQuery.ToList();
            }
        }


    }//end classs
}
